﻿using System.ComponentModel.DataAnnotations;

namespace MilkTeaMachine.OfflineClient.Models;

public record IngredientAndWeightVo
{
    public int IngredientId { get; set; } = -1;
    [MaxLength(256)] public string? IngredientName { get; set; } = "空";
    public string Weight { get; set; } = "0.1";

    public override string ToString()
    {
        return IngredientName ?? "空";
    }
}